
#ifndef _FINDMULTIPOINTDIRECTIONFORM_H_
#define _FINDMULTIPOINTDIRECTIONFORM_H_

#include <FBase.h>
#include <FUi.h>
#include <FApp.h>
#include "FormManager.h"
#include "WebForm.h"

using namespace Osp::Base;
using namespace Osp::Base::Collection;

using namespace Osp::Ui::Controls;
using namespace Osp::App;

class FindMultipointDirectionForm :
	public Osp::Ui::Controls::Form,
	public Osp::Ui::IActionEventListener
{

// Construction
public:
	FindMultipointDirectionForm(void);
	virtual ~FindMultipointDirectionForm(void);
	bool Initialize();
	result OnInitializing(void);
	result OnTerminating(void);

// Implementation
protected:
	OptionMenu *pOptionMenu;
	EditField *pEditField;
	List *pList;
	ArrayList *pListString;

	const static int ID_OPTIONMENU = 1;
	const static int ID_SOFTKEY_OK = 2;
	const static int ID_SOFTKEY_CANCEL = 3;
	const static int ID_OPTIONMENU_MARKALL = 4;
	const static int ID_OPTIONMENU_UNMARKALL = 5;
	const static int ID_OPTIONMENU_DELETE = 6;
	const static int ID_BUTTON = 7;

// Generated call-back functions
	virtual void  OnActionPerformed (const Osp::Ui::Control &source, int actionId);

	void AddAddressToList();
	void DeleteListItem();
	static int FormId;

	void OnSoftkeyOk();
	void OnSoftkeyCancel();

public:
	void Reset();
	void SetFormId(int FormId) {
		this->FormId = FormId;
	}
	static int GetFormId() {
		return FormId;
	}
};

#endif
